﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Administrator/MasterPage.master" AutoEventWireup="false" CodeFile="KycFormAmlo.aspx.vb" Inherits="Administrator_KycFormAmlo" %>

<%@ Register Assembly="DevExpress.Web.v14.1, Version=14.1.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


   
            <script type="text/javascript">


     $(document).ready(function () {
         Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
         
         function EndRequestHandler(sender, args) {
             
         }

     });

     var hasSubmitted = 0;
     function NoDoubleSubmit() {
         var divMsg = document.getElementById('Processing');
         if (hasSubmitted == 0) {
             hasSubmitted = 0;
             divMsg.style.display = 'block';
             return true;
         }
         return false;
     }

    </script>
            <table class="control" style="width:100%;">
                <tr>
                    <td align="right" width="150">
                        ฟอร์ม KYC :
                    </td>
                    <td align="left" style="height: 26px; ">
                        <asp:DropDownList ID="ddlFormType" runat="server" CssClass="control" BackColor="#FFCCCC" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        ชื่อไฟล์ :
                    </td>
                    <td align="left" style="height: 26px; ">
                        <input id="FileUpload1" runat="Server" class="control" 
                            style="width: 220px;background-color: #FFCCCC;" type="file" />
                        <asp:TextBox ID="txtFileName" runat="server" Enabled="False" 
                            Visible="False" Width="350px"></asp:TextBox>
                        &nbsp;<asp:HiddenField ID="hdfUpload" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;</td>
                    <td align="right">
                        &nbsp;<asp:Button ID="btnSearch" runat="server" CssClass="control" Text="ค้นหา" 
                            Width="80px" />
                        &nbsp;<asp:Button ID="btnUpload" runat="server" CssClass="control" Text="อัพโหลด" 
                            Width="80px" />
                        &nbsp;<asp:Button ID="btnModify" runat="server" CssClass="control" Text="แก้ไข" 
                            Width="80px" />
                        &nbsp;<asp:Button ID="btnDelete" runat="server" CssClass="control" Text="ลบ" 
                            Width="80px" />
                        &nbsp;<asp:Button ID="btnClear" runat="server" CssClass="control" Text="เคลียร์" 
                            Width="80px" />
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                       <SPAN id="Processing" style="DISPLAY: none">
 <img src="../img/icon/ajax-loader.gif" alt="Please wait" />
            กรุณารอสักครู่ อยู่ระหว่างดำเนินการ...
  </SPAN></td>
                </tr>
            </table>
            <div align="center">
                <asp:Label ID="lblMsg" runat="server" CssClass="control" Font-Size="XX-Large" 
                    ForeColor="Red" Height="30px" style="text-align: center" Visible="false"
                    Font-Bold="True"></asp:Label>
                <asp:GridView ID="grdImportList" runat="server" AllowPaging="true" AllowSorting="true"
                    AutoGenerateColumns="False" CellPadding="4" CssClass="control" 
                    ForeColor="#333333" Width="100%">
                    <FooterStyle BackColor="White" Font-Bold="True" ForeColor="#333333" />
                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                    <PagerSettings Mode="NumericFirstLast" />
                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" CssClass="cssPager" />
                    <SelectedRowStyle BackColor="#FFFFCC" Font-Bold="True" ForeColor="Navy" />
                    <HeaderStyle BackColor="#E38120" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:CommandField ButtonType="Image" SelectImageUrl="~/img/icon/select_icon.gif"
                            ShowSelectButton="True">
                            <ItemStyle Width="30px" HorizontalAlign="Center" />
                        </asp:CommandField>
                        <asp:BoundField DataField="form_type" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" />
                        <asp:BoundField DataField="form_name" HeaderText="ฟอร์ม KYC" SortExpression="form_name">
                        <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="ชื่อไฟล์" SortExpression="file_name">
                            <ItemTemplate>
                                <asp:HyperLink ID="linkImg" runat="server" Text='<%#Eval("file_name")%>' Target="_blank" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="left" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="upload_date" HeaderText="วันที่นำเข้าระบบ" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" SortExpression="upload_date">
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
            </div>
            <div align="right">
                <asp:Label ID="lblTotal" runat="server" Font-Bold="True" ForeColor="#003300"></asp:Label>
            </div>
</asp:Content>

